how to solve pascal's theorem